package com.vincent.sciinfo.service;

import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-user", configuration = FeignPassToken.class)
public interface UserService {

    @RequestMapping("/user/insertUser")
    int insertUser(@RequestBody Teacher teacher);
}
